package com.footballretriever.datasource;

public abstract class DAOFactory {

	public static final int WEB = 1;
	public static final int DB = 2;
	
	public abstract PlayerDAO getPlayerDAO(String source);

	public static DAOFactory getDAOFactory(int whichFactory) {
	  
		switch (whichFactory) {
		
	    	case WEB	: 
	    		return new WEBDAOFactory();
	    	case DB    : 
	    		return new DBDAOFactory();      
	    	default		: 
	    		return new WEBDAOFactory();
	         
	    }
	    
	  }
	
}
